<?php


namespace app\api\validate\health;


use think\Validate;

class Health extends Validate
{
    /**
     * 验证规则
     * @var array
     */
    protected $rule = [

        // 小区名
        'user_id' => [
            'require'
        ],
        'admin_id' => [
            'require'
        ],
        'name' => [
            'require'
        ],
        'sheet' => [
            'require'
        ],
        'kind' => [
            'require'
        ],
        'item' => [
            'require'
        ],
        'content' => [
            'require'
        ],
        'type' => [
            'require'
        ],
        ];


    protected $message  =   [
        'user_id.require' => '用户不能为空',
        'admin_id.require' => '管家不能为空',
        'name.require' => '主题不能为空',
        'sheet.require' => '类型不能为空',
        'kind.require' => '属性不能为空',
        'item.require' => '数值不能为空',
        'content.require' => '专家点评不能为空',
        'type.require' => '报告类型不能为空'
        ];

    /**
     * 验证场景
     * @var array
     */
    protected $scene = [
        'export' => ['user_id','admin_id','name','sheet','kind','item'],
        'd_export' => ['user_id','admin_id','kind','item']
    ];
}